import request from '@/utils/request';

//获取指定周的选课表
export const apiGetSchedule = (data,token) => {
  return request({
    method: 'POST',
    url: `/api/expschedule/schedule/auth/getSchedule/${token}`,
    data
  })
}

//根据id获取课程信息
/* export const apiGetClassById = (id,token) => {
  return request({
    method: 'GET',
    url: `/api/expschedule/schedule/auth/getById/${id}/${token}`
  })
} */
//api添加课程
export const apiAddCourse = (data,token) => {
  return request({
    method: 'POST',
    url: `/api/expschedule/schedule/auth/save/${token}`,
    data
  })
}